<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.ids.bean.UserInfo"%>
<%@page import="com.ids.util.Constants"%>
<html>
<head>
<link href="<s:url value="/css/main.css"/>" rel="stylesheet"
	type="text/css" />
<title>Team Attendance</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8"></script>
</head>
<body>
<s:form action="TeamAttendanceApproval" theme="simple">
	<div class="titleDiv"><s:text name="teamAttendence.title" /></div>
	<br>
	<%@include file="header.jsp"%>
	<br>
	<center>
	<%
			if (request.getAttribute(Constants.DATA_MANIPULATION_MESSAGE) != null) {
			out.print(request
			.getAttribute(Constants.DATA_MANIPULATION_MESSAGE));
			request.removeAttribute(Constants.DATA_MANIPULATION_MESSAGE);
		}
	%>
	</center>
	<table align="center" class="borderAll">
		<tr>
			<th><s:text name="date" /></th>
			<th><s:text name="empCode" /></th>
			<th><s:text name="teamMember" /></th>
			<th align="center"><s:text name="attendance" /></th>
			<th><s:text name="status" /></th>
			<th><s:text name="Comp Off" /></th>
		</tr>
		<s:iterator id="status" value="teamAttendanceData">
			<tr class="even">
				<td class="nowrap"><s:property value="dated" /><s:hidden
					name="dated"></s:hidden></td>
				<td class="nowrap"><s:property value="empCode" /><s:hidden
					name="empCode"></s:hidden></td>
				<td class="nowrap"><s:property value="fullName" /></td>
				<td class="nowrap"><s:select list="attendanceTypeData"
					listKey="id" listValue="value" name="attendanceTypeId"
					theme="simple" id="attendanceTypeId" /> <s:select
					list="dependantAttendanceTypeData" listKey="id" listValue="value"
					name="dependantAttendanceTypeId" id="dependantAttendanceTypeId"
					theme="simple" required="true" /></td>
				<td class="nowrap"><s:select list="statusTypeData" listKey="id"
					listValue="value" name="statusTypeId" theme="simple">
				</s:select></td>
				<td class="nowrap"><s:select list="CompOffs"
					name="compOffStatus">
				</s:select></td>
			</tr>
		</s:iterator>
		<tr>
			<td colspan="5" align="right"><s:submit /> <input type="button"
				value="Back" onclick="javascript:history.go(-1);" /></td>
		</tr>
	</table>
</s:form>
</body>
</html>
